package edu.nuc.event.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Notices {

    private int id;//公告ID
    private int adid;//赛事管理员ID
    private int cpid;//赛事ID
    private String notice;//公告内容
    private int notype;//公告的状态:1-显示、0-撤销

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date notime;//公告时间
    private String notitle;//公告标题

    private Competition com;
    private int account;
    private User user;

    @Override
    public String toString() {
        return "Notices{" +
                "id=" + id +
                ", adid=" + adid +
                ", cpid=" + cpid +
                ", notice='" + notice + '\'' +
                ", notype=" + notype +
                ", notime=" + notime +
                ", notitle='" + notitle + '\'' +
                ", com=" + com +
                ", user=" + user +
                '}' + "\n";
    }
}
